import { Textarea, View} from "@tarojs/components";
import Taro from "@tarojs/taro";
import './index.scss'
import {useState} from "react";

function Index() {
  //输入框绑定数据
  const [username,Setname] = useState('')
  const inputHandler =(e)=>{
    Setname(e.target.value)
  }
  //确认提交
  const  submit = ()=>{
    Taro.navigateBack()
  }
  return (
    <View>
      <View style={{backgroundColor:'#fff',height:'80px',lineHeight:'80px'}}>
        <View className='iconfont icon-xiangzuo' style={{position:'absolute',top:'0',left:'0',fontSize:'22px',paddingTop:'6px',display:'flex'}}
              onClick={()=>Taro.navigateBack()}>
          <View style={{fontSize:'14px',paddingLeft:'4px'}}>更改简介</View>
        </View>
        <View style={{textAlign:'center',width:'100%'}}></View>
      </View>
      <View className='input_box'>
        <Textarea value={username} onInput={(e)=>inputHandler(e)}></Textarea>
      </View>
      <View className='btn' onClick={submit}>保存</View>
    </View>

  );
}

export default Index;
